import 'package:flutter/material.dart';


import 'SplashScreen.dart';

import 'package:get/get.dart';

import 'app/login/LoginPhonePapge.dart';
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  /// 使用 Get.put() 注入控制器到依赖系统中（全局可用）
  // final main_controller controller = Get.put(main_controller());

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
        navigatorKey: navigatorKey,
      defaultTransition: Transition.rightToLeft, // 全局默认过渡动画
      transitionDuration: Duration(milliseconds: 200), // 动画时长
      title: 'Flutter Demo',
      theme: ThemeData(

        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home:LoginPhonePapge()//SplashScreen(),
    );
  }
}

